using HarmonyLib;
using System.Reflection;
using UnityEngine;

namespace AllGunsSixSlots
{
    public class ModBehaviour : Duckov.Modding.ModBehaviour
    {
        private const string Id = "Custom.AllGunsSixSlots";

        private Harmony? _harmony;

        private void OnEnable()
        {
            UnityEngine.Debug.Log("AllGunsSixSlots Mod已加载 - 将为所有枪械添加6个插槽");
            _harmony = new Harmony(Id);
            _harmony.PatchAll(Assembly.GetExecutingAssembly());
        }

        private void OnDisable()
        {
            _harmony?.UnpatchAll(Id);
            UnityEngine.Debug.Log("AllGunsSixSlots Mod已卸载");
        }
    }
}